		{if $search_result ne 0}
			<div align="right">Your search returned {$num_results} results.</div>
			<table width="100%" cellpadding="1px" class="info">
				<tr bgcolor="#18A1C9">
					<td class="info">
						Status
					</td>
					<td class="info">
						Username
					</td>
					<td class="info">
						Real Name
					</td>
					<td class="info">
						Location
					</td>
				</tr>
			{foreach name=outer from=$search_result item=index}
			{*<a href="http://www.codenamestimpy.com/profile.php?user={$index[0]}">*}
			<tr{if $trigger eq 'true'} bgcolor="#C2E4EE" {assign var='trigger' value='false'}{else}{assign var='trigger' value='true'}{/if}>
				{foreach from=$index key=key item=item}
				{if $key ne 'UID'}
				<td>
					{if $item eq null && $key ne 'logged'}
						<a href="{*http://www.codenamestimpy.com/*}profile.php?user={$UID}">Hidden</a>
					{elseif $item eq null && $key eq 'logged'}
						<a href="{*http://www.codenamestimpy.com/*}profile.php?user={$UID}">Offline</a>
					{elseif $item ne null && $key eq 'logged'}
						<a href="{*http://www.codenamestimpy.com/*}profile.php?user={$UID}">Online</a>
					{else}
						<a href="{*http://www.codenamestimpy.com/*}profile.php?user={$UID}">{$item}</a>
					{/if}
				</td>
				{else}
					{assign var=UID value=$item}
				{/if}
				{/foreach}
			</tr>
			{/foreach}
			</table>
			{if $num_results lt 25}
				{section name=breaks start=$num_results loop=18}
					<br />
				{/section}
			{/if}
			<div align="center">Select a page:&nbsp;
				{section name=pages start=1 loop=$total_pages}
					{if $smarty.section.pages.index eq $page}
						{$smarty.section.pages.index}
					{else}
						<a href="profilesearch.php?submit=Search&search={$search}&page={$smarty.section.pages.index}">{$smarty.section.pages.index}</a>
					{/if}
					{if ($smarty.section.pages.index+1) ne $total_pages} - {/if}
				{/section}<br />
		</div>
		{else}
			<h3 align="center">Your search returned no results! Please broaden your search.</h3>
			<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
		{/if}	